package com.huifai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户数据权限表
 * </p>
 *
 * @author wcj
 * @since 2019-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysDataPermission implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 数据维度ID
     */
    private Long dpId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 组织机构id
     */
    private Long orgId;

    /**
     * 用户组id
     */
    private Long groupId;

    /**
     * 角色id
     */
    private Long roleId;


}
